package com.flick.exception;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class CommonException extends RuntimeException{
    private String code;
    private String msg;

    public CommonException(String msg){
        super("错误代码:500,错误内容:" + msg);
        this.code = "500";
        this.msg = msg;
    }

    public CommonException(String code, String msg) {
        super("错误代码:" + code + ",错误内容:" + msg);
        this.code = code;
        this.msg = msg;
    }
}
